//库存管理
import Layout from '@/layout'
export default {
    path: '/stockManagement',
    component: Layout,
    redirect: '/stockManagement/inStock',
    children: [{
        path: '/stockManagement/inStock',
        component: () => import('@/view/stockManagement/inStock'),
        meta: {
            title: '默通工单',
            breadList: [{
                    name: '库存管理',
                    to: '/stockManagement/inStock'
                },
                {
                    name: '入库单',
                    to: '/stockManagement/inStock'
                },
            ],
            permCode: "warehousing.list"
        }
    }, {
        path: '/stockManagement/inStock/create',
        component: () => import('@/view/stockManagement/inStock/create'),
        meta: {
            title: '默通工单',
            activePath: '/stockManagement/inStock',
            breadList: [{
                    name: '库存管理',
                    to: '/stockManagement/inStock'
                },
                {
                    name: '入库单',
                    to: '/stockManagement/inStock'
                },
                {
                    name: '创建入库单',
                    to: ''
                },
            ],
            permCode: "inStock.create"
        }
    }, {
        path: '/stockManagement/inStock/edit',
        component: () => import('@/view/stockManagement/inStock/edit'),
        meta: {
            title: '默通工单',
            activePath: '/stockManagement/inStock',
            breadList: [{
                    name: '库存管理',
                    to: '/stockManagement/inStock'
                },
                {
                    name: '入库单',
                    to: '/stockManagement/inStock'
                },
                {
                    name: '编辑入库单',
                    to: ''
                },
            ],
            permCode: "inStock.edit"
        }
    }, {
        path: '/stockManagement/outStock',
        component: () => import('@/view/stockManagement/outStock'),
        meta: {
            title: '默通工单',
            breadList: [{
                    name: '库存管理',
                    to: '/stockManagement/inStock'
                },
                {
                    name: '出库单',
                    to: '/stockManagement/outStock'
                },
            ],
            permCode: "outbound.order"
        }
    }, {
        path: '/stockManagement/outStock/create',
        component: () => import('@/view/stockManagement/outStock/create'),
        meta: {
            title: '默通工单',
            activePath: '/stockManagement/outStock',
            breadList: [{
                    name: '库存管理',
                    to: '/stockManagement/inStock'
                },
                {
                    name: '出库单',
                    to: '/stockManagement/outStock'
                },
                {
                    name: '创建出库单',
                    to: ''
                },
            ],
            permCode: "outStock.create"
        }
    }, {
        path: '/stockManagement/outStock/edit',
        component: () => import('@/view/stockManagement/outStock/edit'),
        meta: {
            title: '默通工单',
            activePath: '/stockManagement/outStock',
            breadList: [{
                    name: '库存管理',
                    to: '/stockManagement/inStock'
                },
                {
                    name: '出库单',
                    to: '/stockManagement/outStock'
                },
                {
                    name: '编辑出库单',
                    to: ''
                },
            ],
            permCode: "outStock.edit"
        }
    }, {
        path: '/stockManagement/stockDetail',
        component: () => import('@/view/stockManagement/stockDetail'),
        meta: {
            title: '默通工单',
            breadList: [{
                    name: '库存管理',
                    to: '/stockManagement/inStock'
                },
                {
                    name: '库存收发明细',
                    to: '/stockManagement/stockDetail'
                },
            ],
            permCode: "inventory.details.report"
        }
    },{
        path: '/stockManagement/balanceReport',
        component: () => import('@/view/stockManagement/balanceReport'),
        meta: {
            title: '默通工单',
            activePath: '/stockManagement/balanceReport',
            breadList: [{
                    name: '库存管理',
                    to: '/stockManagement/inStock'
                },
                {
                    name: '库存余额',
                    to: ''
                },
            ],
            permCode: "stock.balanceReport"
        }
    },]
}